﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web.DomainServices;

namespace FlexiCommerce.Components
{
    [Serializable, ScaffoldTable(false)]
    public class ProductDetails : PersistenceItem
    {
        public ProductDetails()
        {
        }
        public ProductDetails(string name, Culture culture)
        {
            this.name = name;
            this.culture = culture;
        }

        private Culture culture;
        [Exclude]
        public Culture Culture
        {
            get { return culture; }
            set { culture = value; }
        }

        private string name;
        [StringLength(20)]
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private Product product;
        [Exclude]
        public Product Product
        {
            get { return product; }
            set { product = value; }
        }

    }
}
